<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    
    <title>考勤 - 人员管理 - 修改 </title>

	<script type="text/javascript" src="<%=basePath %>/jquery/My97DatePicker/WdatePicker.js"></script>
	<link rel="stylesheet" href="<%=basePath %>/jquery/My97DatePicker/skin/WdatePicker.css" type="text/css"></link>
	<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/manual.css">
	
  </head>
  
  <body>
  
  <table  width="100%"  border="0" cellpadding="0" cellspacing="0" height="100%">
  	<tr valign="top">
  	
  		<td height="100">
  			 <jsp:include page="/background/operator/head.jsp"></jsp:include>
  		</td>
  	</tr>
  	<tr valign="top">
  		<td>
  		
   
   
  <table width="100%"  border="0" cellpadding="0" cellspacing="0">
  
 <tr>
    	<td width="270" align="center">
    		
    	</td>
    	<td width="100%">

    	</td>
    </tr>
    
    <tr>
    	<td valign="top">
     		<div>
     		
     		</div>
					<s:include value="/background/operator/left.jsp"></s:include>		
     	</td>
     	
     	
     	<td valign="top" >
     	
     	<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
     		<tr>
     			<td>考勤 - 人员管理 - 修改
     			
     			<input type="button" value="查看谁有权限" 
     				onclick="javascript:openUrlForDialog('selectoperatorlimitedAction_background.action?limitedCode=<s:property value="limitedcode"/>')"/>
     			</td>
     			<td align="right"> </td>
     		</tr>
     	</table>
     	
     	<table align="center">
     		<tr>
     			<td><s:fielderror id="errormessage" /></td>
     		</tr>
     	</table>
     	
    <form id="managereceiptlist_warehouse" name="managereceiptlist_warehouse" onSubmit="return true;" action="modifyoperator_attendance.action" method="POST" >
    	
			<table  border="0" >
				<tr>
				  <td align="right" width="150">
					  操作员:
				  </td>
				  <td>
					  <s:property value="operatorOfAttendance.name_operator" /> (<font color="#c0c0c0"><s:property value="operatorOfAttendance.firstname_operator" /></font>)
					  <input type="hidden" name="operatorid" id="operatorid" value="<s:property value="operatorOfAttendance.operatorid_operator" />">
				  </td>
			  </tr>
			  
			  <tr>
				  <td align="right">
					  部门:
				  </td>
				  <td>
					 
				  </td>
			  </tr>
			  
			   <tr>
				  <td align="right">
					  基本工资:
				  </td>
				  <td>
					 <input type="text" id="basicpay_operator" name="basicpay_operator" value="<s:property value="operatorOfAttendance.basicpay_operator" />"/>
				  </td>
			  </tr>
			  
			  <tr>
				  <td align="right">
					  评分工资:
				  </td>
				  <td>
					 <input type="text" id="markpay_operator" name="markpay_operator" value="<s:property value="operatorOfAttendance.markpay_operator" />"/>
				  </td>
			  </tr>
			  
			   <tr>
				  <td align="right">
					  职务补助:
				  </td>
				  <td>
					 <input type="text" id="jobpay_operator" name="jobpay_operator" value="<s:property value="operatorOfAttendance.jobpay_operator" />"/>
				  </td>
			  </tr>
			  
			  <tr>
				  <td align="right">
					  工作日:
				  </td>
				  <td>
				  <table>
				  <tr>
					<td>
						周一
						<s:if test="operatorOfAttendance.monday_operator==true">
							<input id="monday_operator" name="monday_operator" type="checkbox" checked="checked" value="true" onchange="changeCheckboxValue(this)"/> 
						</s:if>
						<s:else>
							<input id="monday_operator" name="monday_operator" type="checkbox"  value="false" onchange="changeCheckboxValue(this)"/> 
						</s:else>
					</td>
					
					<td>
						周二
						<s:if test="operatorOfAttendance.tuesday_operator==true">
							<input id="tuesday_operator" name="tuesday_operator" type="checkbox" checked="checked" value="true" onchange="changeCheckboxValue(this)"/> 
						</s:if>
						<s:else>
							<input type="checkbox" id="tuesday_operator" name="tuesday_operator" onchange="changeCheckboxValue(this)"/> 
						</s:else>
					</td>
											
					<td>
						周三 
						<s:if test="operatorOfAttendance.wednesday_operator==true">
							<input id="wednesday_operator" name="wednesday_operator" type="checkbox" checked="checked" value="true" onchange="changeCheckboxValue(this)"/> 
						</s:if>
						<s:else>
							<input type="checkbox" id="wednesday_operator" name="wednesday_operator" onchange="changeCheckboxValue(this)"/> 
						</s:else>
					</td>
					
					
					<td >
						周四 
						<s:if test="operatorOfAttendance.thursday_operator==true">
							<input id="thursday_operator" name="thursday_operator" type="checkbox" checked="checked" value="true" onchange="changeCheckboxValue(this)"/> 
						</s:if>
						<s:else> 
							<input type="checkbox" id="thursday_operator" name="thursday_operator" onchange="changeCheckboxValue(this)"/>
						</s:else>
					</td> 								
							
					<td>			周五 						
						<s:if test="operatorOfAttendance.friday_operator==true">
							
							<input id="friday_operator" name="friday_operator" type="checkbox" checked="checked" value="true" onchange="changeCheckboxValue(this)"/> 
						</s:if>
						<s:else>
							<input type="checkbox" id="friday_operator" name="friday_operator" onchange="changeCheckboxValue(this)"/> 
						</s:else>
					</td>					
																	
					<td >		周六									
						<s:if test="operatorOfAttendance.saturday_operator==true">
							
							<input id="saturday_operator" name="saturday_operator" type="checkbox" checked="checked" value="true" onchange="changeCheckboxValue(this)"/> 
						</s:if>
						<s:else>
							<input type="checkbox" id="saturday_operator" name="saturday_operator" onchange="changeCheckboxValue(this)"/>
						</s:else>
					</td>
					
					<td>		周日							
						<s:if test="operatorOfAttendance.sunday_operator==true">
							
							<input id="sunday_operator" name="sunday_operator" type="checkbox" checked="checked" value="true" onchange="changeCheckboxValue(this)"/> 
						</s:if>
						<s:else>
							<input type="checkbox" id="sunday_operator" name="sunday_operator" onchange="changeCheckboxValue(this)"/> 
						</s:else>
					</td>
					</tr>
					</table>	
					
						
				  </td>
				  
			  </tr>
			  
			  <tr>
				  <td align="right">
					  工作时间:
				  </td>
				  <td>
					
					
					 <input value="<s:property value="operatorOfAttendance.workhours_operator"/>" type="text" id="workhours_operator" name="workhours_operator" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'H:mm:ss'})" class="Wdate"/>
					  ~ 
					 <input value="<s:property value="operatorOfAttendance.offhours_operator"/>" type="text" id="offhours_operator" name="offhours_operator" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'H:mm:ss'})" class="Wdate"/>
				  </td>
			  </tr>
			  
			    <tr>
				  <td align="right">
					  <button type="submit">提交</button>
				  </td>
				  <td>
				  
					
					
					 
				  </td>
			  </tr>
			</table>
	</form> 
	
	
		
		
		
		
	
	
			
	
			
	</td>

	
</tr>

</table>

</td>
</tr>
<tr valign="bottom">
	<td>
		<jsp:include page="/background/operator/tail.jsp"></jsp:include>
	</td>
</tr>
</table>



  </body>
   <script type="text/javascript">
  
  function changeCheckboxValue(cb){
	  //alert(cb.checked);
	  if(cb.checked){
		  cb.value='true';
		 }else{
			 cb.value='false';
			}

	}
  
  
  </script>
 

</html>
